﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace crmbl.WorkProcessor.Library
{
    public struct WorkDefinition
    {
        public Object Action;
        public DateTime StartDateTimeUTC;
        public DateTime EndDateTimeUTC;
        public int IntervalSeconds;
        public String LockKey;
        public DateTime LastLockedDateTime;
        public DateTime LastRunDateTime;
        public Boolean AllowSimultaneousRuns;

        public WorkParameter[] WorkParameters;
    }

    public struct WorkParameter
    {
        public String WorkParameterName;
        public String WorkParameterTypeName;
        public Object Value;
    }

    public struct WorkType
    {
        public String WorkTypeName;
        
        public String DllName;
        public int KillTimeSeconds;
    }
}
